package pms.device.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import pms.contract.domain.BaseEntity;
import pms.contract.domain.Group;


@Table(name = "device")
@Entity
public class Device extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4376674977047164142L;
   
	@Column(name = "device_name")
	String device_name;

	@Column(name = "device_num")
	String device_num;

	@Column(name = "device_place")
	String device_place;

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	@ManyToOne
	@JoinColumn(name = "GROUP_ID")
	Group group;
	public void setDevice_name(String device_name) {
		this.device_name = device_name;
	}

	public String getDevice_num() {
		return device_num;
	}

	public void setDevice_num(String device_num) {
		this.device_num = device_num;
	}

	public String getDevice_place() {
		return device_place;
	}

	public void setDevice_place(String device_place) {
		this.device_place = device_place;
	}

	

}